package com.anpxd.erpad.net

import com.anpxd.erpad.App


/**
 *  Creator : GG
 *  Time    : 2017/11/15
 *  Mail    : gg.jin.yu@gmail.com
 *  Explain : 常量类
 */
object UrlConfig {

    fun getShareUrl(carId: String): String = App.instance.getWxUrl() + "controller/wx/toWxOpenOauth2?action=${if (carId == "") "shopHome" else "carDetail"}&state=${if (carId == "") App.instance.getUser()?.shopId else carId}&marketId=${App.instance.getUser()?.marketId}"

}